/**
 * 基础路由
 * @type { *[] }
 */


const constantRouterMap = [
  {
    path: "/",
    name: "layout",
    component: () => import("@/views/layout/index.vue"),
    redirect: { name: "Login" },
    children: [
      {
        path: "/",
        name: "Login",
        redirect: { name: "LoginIndex" },
        children: [
          {
            path: "/login/index",
            name: "LoginIndex",
            component: () => import("@/views/login/index.vue"),
          },
        ],
      },
      {
        path: "/live-rooms",
        name: "LiveRooms",
        meta: {
          title: "直播间",
        },
        component: () => import("@/views/live-rooms/index.vue"),
      },
      {
        path: "/add-live-room",
        name: "AddLiveRooms",
        meta: {
          title: "新建直播间",
        },
        component: () => import("@/views/live-rooms/add-live-room.vue"),
      },
      {
        path: "/live-goods",
        name: "LiveGoods",
        meta: {
          title: "选择直播商品",
          KeepAlive: true,
        },
        component: () => import("@/views/live-rooms/live-goods.vue"),
      },
      {
        path: "/live-room-set",
        name: "LiveRoomSet",
        meta: {
          title: "直播间设置",
        },
        component: () => import("@/views/live-rooms/live-room-set.vue"),
      },
      {
        path: "/digital-human",
        name: "DigitalHuman",
        meta: {
          title: "数字人",
        },
        component: () => import("@/views/digital-human/index.vue"),
      },
      {
        path: "/simulated-live",
        name: "SimulatedLive",
        meta: {
          title: "模拟直播间",
        },
        component: () => import("@/views/live-rooms/simulated-live.vue"),
      },
    ],
  },
];

export default constantRouterMap;
